﻿using Galoap;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Collections.Generic;

namespace Tests
{
    
    
    /// <summary>
    ///This is a test class for QuestionTest and is intended
    ///to contain all QuestionTest Unit Tests
    ///</summary>
    [TestClass()]
    public class QuestionTest
    {


        private TestContext testContextInstance;

        /// <summary>
        ///Gets or sets the test context which provides
        ///information about and functionality for the current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize()]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup()]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize()]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup()]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        /// <summary>
        ///A test for GetQuestionByID
        ///</summary>
        [TestMethod()]
        public void GetQuestionByIDTest()
        {
            Question actual = Question.GetQuestionByID(1);
            Assert.AreEqual(1, actual.QuestionID);
        }

        [TestMethod()]
        public void GetMostFrequentAnswerTest()
        {
            Question qi = Question.GetQuestionByID(1);
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetMostFrequentAnswerTest1Helper<T>() with appropriate type paramete" +
                    "rs.");*/
        }

        [TestMethod()]
        public void GetAnswersWithCountSmallerThanTest1()
        {
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersWithCountSmallerThanTest1Helper<T>() with appropriate type" +
                    " parameters.");*/
        }

        [TestMethod()]
        public void GetAnswersWithCountSmallerThanTest()
        {
         /*   Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersWithCountSmallerThanTestHelper<T>() with appropriate type " +
                    "parameters.");*/
        }

        [TestMethod()]
        public void GetAnswersWithCountGreaterThanTest1()
        {
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersWithCountGreaterThanTest1Helper<T>() with appropriate type" +
                    " parameters.");*/
        }

        [TestMethod()]
        public void GetAnswersWithCountGreaterThanTest()
        {
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +/
                    "Please call GetAnswersWithCountGreaterThanTestHelper<T>() with appropriate type " +
                    "parameters.");*/
        }

        [TestMethod()]
        public void GetAnswersWithCountEqualToTest1()
        {
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersWithCountEqualToTest1Helper<T>() with appropriate type par" +
                    "ameters.");*/
        }

        [TestMethod()]
        public void GetAnswersWithCountEqualToTest()
        {
          /*  Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersWithCountEqualToTestHelper<T>() with appropriate type para" +
                    "meters.");*/
        }

        [TestMethod()]
        public void GetAnswersOrderedByFrequencyTest1()
        {
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersOrderedByFrequencyTest1Helper<T>() with appropriate type p" +
                    "arameters.");*/
        }

        [TestMethod()]
        public void GetAnswersOrderedByFrequencyTest()
        {
           /* Assert.Inconclusive("No appropriate type parameter is found to satisfies the type constraint(s) of T. " +
                    "Please call GetAnswersOrderedByFrequencyTestHelper<T>() with appropriate type pa" +
                    "rameters.");*/
        }

        /// <summary>
        ///A test for GetRandomEnumerator
        ///</summary>
        [TestMethod()]
        public void GetRandomEnumeratorTest()
        {
            /*Question question = null; // TODO: Initialize to an appropriate value
            Session session = null; // TODO: Initialize to an appropriate value
            IEnumerable<Question> expected = null; // TODO: Initialize to an appropriate value
            IEnumerable<Question> actual;
            actual = Question.GetRandomEnumerator(question, session);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");*/
        }
    }
}
